$(function() {
    if (typeof(Storage) !== "undefined")
    {
        $.post(localStorage.domain_app+"/webservice/budget/getBudgetItemById.php", {
            budget_item_id: sessionStorage.budget_item_id,
            user_id: localStorage.userID
        }, function(res) {
            if (res.error == 0) {
                if (res.item != "") {
                    $('input[name="Item"]').val(res.item);
                }
                if (res.amount != "") {
                    $('input[name="Amount"]').val(res.amount);
                }

            } else {
                print_alert(res.msg);
                wd_redirect("budget.html");
            }
        }, "json");

    }
    else
    {
        return false;
    }

});